<style type="text/css">
    .main {
        display: flex;
        /* height: 600px; */
        /* height: 30%; */
    }
    .flex {
        display: flex;
    }
    .left {
        flex: 0.54;
        display: flex;
        flex-direction: column;
        /* margin-right: 20px; */
        margin-right: 1vw;
    }
    .right {
        flex: 0.40;
        display: flex;
        flex-direction: column;
    }
    .box {
        border: 1px solid #DDDDDD;
        /* font-size: 15px; */
        font-size: 0.79vw;
    }
    .box-homework {
        margin-top: 1.6vh;
    }
    .header-box {
        /* height: 50px; */
        height: 5.2vh;
        background-color: #EEEEEE;
    }
    .title {
        color: #4986BC;
        /* line-height: 50px; */
        line-height: 5.2vh;
        font-weight: bold;
        float: left;
        /* margin-left: 15px; */
        margin-left: 0.9vw;
    }
    .base {
        display: flex;
        justify-content: space-between;
    }
    .base-count {
        display: flex;
        /* width: 286px;
        height: 76px; */
        /* width: 14.9vw; */
        width: 31%;
        height: 8.1vh;
    }
    .num-teacher {
        background-color: #87B880;
    }
    .num-student {
        background-color: #6FB3E0;
    }
    .num-classes {
        background-color: #FFB751;
    }
    .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        /* margin: 20px; */
        margin: 1.8vw;
    }
    .icon i {
        color: #fff;
    }
    .data {
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .desc {
        /* font-size: 18px; */
        font-size: 0.92vw;
    }
    .num {
        /* font-size: 15px; */
        font-size: 0.92vw;
    }
    .outer-work {
        /* height: 50px; */
        height: 5.2vh;
        float: right;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        /* margin-right: 20px; */
        margin-right: 1vw;     
    }
    .work-div {
        /* height: 30px; */
        height: 3.5vh;
        background-color: #448FB9;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .work-calendar {
        padding: 0px 20px 0px 10px;
        text-align: center;
        z-index: 999;
        /* line-height: 30px; */
    }
    .rec {
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #fff;
        position: absolute;
        right: 5px;
    }
    .outer-person {
        /* height: 50px; */
        height: 5.2vh;
        /* width: 110px; */
        /* width: 120px; */
        /* width: 5.7vw; */
        float: right;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        /* margin-right: 20px; */
        margin-right: 1vw;  
    }
    .person-div{
        /* height: 30px; */
        height: 3.5vh;
        background-color: #448FB9;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .person-calendar {
        text-align: center;
        z-index: 999;
        padding: 0px 20px 0px 10px;
        /* line-height: 30px; */
    }
    .brand {
        /* margin-bottom: 20px; */
        margin-bottom: 2vh;
    }
    #bar-echarts {
        /* width: 900px;
        height: 400px;
        margin: 20px 0 0 25px; */
        width: 50vw;
        height: 42.6vh;
        /* height: 100%; */
        margin-top: 0.5vh;
    }
    #brand-echarts {
        /* height: 190px; */
        height: 19vh;
    }
    #person-echarts {
        /* height: 250px; */
        height: 26.445vh;
    }
    .line {
        width: 0px;
    }
</style>
<div class="page-header">
    <h1>数据统计分析</h1>
</div>
<div class="col-xs-12 main">
    <div class="left">
        <div class="top base">
            <div class="base-count num-teacher">
                <div class="icon"><i class="fa fa-user fa-4x"></i></div>
                <div class="data">
                    <div class="desc">教师数量</div>
                    <div class="num"><?= $data['teacherNum'] ?>人</div>
                </div>
            </div>
            <div class="base-count num-student">
                <div class="icon"><i class="fa fa-user-circle fa-4x"></i></div>
                <div class="data">
                    <div class="desc">学生数量</div>
                    <div class="num"><?= $data['studentNum'] ?>人</div>
                </div>
            </div>
            <div class="base-count num-classes">
                <div class="icon"><i class="fa fa-home fa-4x"></i></div>
                <div class="data">
                    <div class="desc">课室数量</div>
                    <div class="num"><?= $data['classroomNum'] ?>个</div>
                </div>
            </div>
        </div>
        <div class="box box-homework">
            <div class="header-box">
                <div class="title">数据量/次</div>
                <div class="outer-work">
                    <div class="work-div">
                        <div id="work-calendar" class="work-calendar"></div>
                        <div class="rec"></div>
                    </div>
                </div>
            </div>
            <div id="bar-echarts" class="bar-echarts"></div>
        </div>
    </div>
    <div class="right">
        <div class="box brand">
            <div class="header-box">
                <div class="title">班牌数量统计</div>
            </div>
            <div id="brand-echarts"></div>

        </div>
        <div class="box">
            <div class="header-box">
                <div class="title">今日人数统计</div>
                <div class="outer-person">
                    <div class="person-div">
                        <div id="person-calendar" class="person-calendar"></div>
                        <div class="rec"></div>
                    </div>
                </div>
            </div>
            <div id="person-echarts"></div>
        </div>
    </div>
</div>